<?php
/* ---------------------------------------------------------------------------------
|
|  $URL: http://tech2allwptheme.googlecode.com/svn/trunk/index.php $
|  $Rev: 2 $
|  $LastChangedDate: 2008-12-08 13:02:31 +0000 (Mon, 08 Dec 2008) $
|  $LastChangedBy: ruhani.rabin $
|  $Id: index.php 2 2008-12-08 13:02:31Z ruhani.rabin $
|---------------------------------------------------------------------------------*/
?>
<?php get_header(); ?>
<div id="content">
	<?php if (have_posts()) : ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?><br />
		<?php while (have_posts()) : the_post(); ?>

	<div class="post" id="post-<?php the_ID(); ?>">
		<div class="title">
			<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
			<p>Written by <?php the_author() ?> on <?php the_time('F j, Y'); ?>.</p>
		</div>
		<div class="entry">
    <?php the_content(''); ?>
			<span class="readmore"><a href="<?php the_permalink() ?>#more-<?php echo $post->ID; ?>">Read More</a></span> |<span class="addcomment"><?php comments_popup_link('Add Comments', '1 Comment', '% Comments'); ?></span>
		</div>
	</div>

		<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?><br />
	<?php else : ?>

	<div class="post">
		<div class="title">
			<h2>No Archive Found</h2>
		</div>
		<div class="entry">
			<p>Sorry, but you are looking for an archive that isn't here.</p>
		</div>
	</div>

	<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
